
<?php echo breadcrumb(get_breadcrumb($content->category_id)) ?>

<div class="box">
	
	<h1 style="background-color:#<?php echo ($content->category->color)?$content->category->color:$content->category->parent->color ?>">
		<img src="uploads/icon/head/<?php echo ($content->category->image)?$content->category->image:$content->category->parent->image ?>" />
		<span><?php echo lang_decode($content->title)?></span>
		<div class="corner_left"></div>
		<div class="corner_right"></div>
	</h1>
	<div class="meta">
		<ul>
			<li><label><span class="icon-user-5 icon"></span> โดย </label><?php echo $content->user->fullname ?></li>
			<li><label><span class="icon-star1 icon"></span> หมวดหมู่ </label><a href="contents/index/<?php echo $content->category_id ?>"><?php echo $content->category->name ?></a></li>
			<li><label><span class="icon-date icon"></span> วันที่ </label><?php echo mysql_to_th(($content->start_date<>'0000-00-00')?$content->start_date:$content->created) ?></li>
			<li><label><span class="icon-page icon"></span> จำนวนที่แสดง </label><?php echo $content->counter ?> ครั้ง</li>
			<div class="clear"></div>
		</ul>

	</div>
<div class="view">
	<?php echo lang_decode($content->detail)?>
	<?php if($content->category_id==4): ?>
	<?php if($content->news_paper->name): ?><p><strong>หนังสือพิมพ์: </strong><?php echo $content->news_paper->name ?></p><?php endif; ?>
	<?php if($content->news_type->name): ?><p><strong>ประเภท: </strong><?php echo $content->news_type->name ?></p><?php endif; ?>
	<?php if($content->news_date): ?><p><strong>ฉบับวันที่: </strong><?php echo mysql_to_th($content->news_date) ?></p><?php endif; ?>
	<?php endif; ?>
</div>

<?php if($content->tag or $content->file): ?>
<div class="tag">
	<?php if($content->file): ?>
	<span class="icon icon-folder-go">
	</span> <a href="contents/download/<?php echo $content->id ?>">ดาวน์โหลด</a>     
	<?php endif; ?>
	<?php if($content->tag): ?>
	<span class="icon icon-tag-1">
	</span> แท็ก 
	<?php echo tag_decode($content->tag) ?>
	<?php endif; ?>
</div>
<?php endif; ?>
</div>